package rmi;

import java.rmi.registry.Registry;
import java.rmi.registry.LocateRegistry;

public class Servidor {

	public static void main(String args[]) {
		try {
			InterfaceSPDManager servico = new InterfaceSPDManagerImp();
			Registry registry = LocateRegistry.createRegistry(1100);
			registry.bind("Manager", servico);
			System.out.println("Servidor iniciado!");
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
